package com.buka.api;

import com.buka.request.LockCouponRequest;
import com.buka.util.JsonData;
import feign.Headers;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

@Service
@FeignClient("coupon-service")
public interface CouponApi {

    @PostMapping("/api/couponTask/v1/lockCoupon")
    public JsonData lockCoupon(LockCouponRequest lockCouponRequest);

}
